/*
Copyright 2009 Jeff Carnes

This file is part of Fluant.

Fluant is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

Fluant is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

package com.amiasleep.fluant.flaPublisher.enums;

public enum SWFVersion {
	FP1(1),
	FP2(2),
	FP3(3),
	FP4(4),
	FP5(5),
	FP6(6),
	FP7(7),
	FP8(8),
	FP9(9),
	FP10(10),
	FlashLite1_0(7, ExternalPlayer.FlashLite10),
	FlashLite1_1(7, ExternalPlayer.FlashLite11),
	FlashList2_0(7, ExternalPlayer.FlashLite20),
	FlashLite2_1(7, ExternalPlayer.FlashLite21),
	FlashLite3(8, ExternalPlayer.FlashLite30);
	
	
	protected int version;
	protected ExternalPlayer externalPlayer;
	
	
	SWFVersion(int version)
	{
		this.version = version;
	}
	
	SWFVersion(int version, ExternalPlayer player)
	{
		this.version = version;
		this.externalPlayer = player;
	}
	
	
	
	public int getVersion()
	{
		return version;
	}
	
	
}


enum ExternalPlayer
{
	FlashLite10("FlashLite10"),
	FlashLite11("FlashLite11"),
	FlashLite20("FlashLite20"),
	FlashLite21("FlashLite21"),
	FlashLite30("FlashLite30");
	
	
	protected String externalPlayer;
	
	ExternalPlayer(String externalPlayer)
	{
		this.externalPlayer = externalPlayer;
	}
	
	public String toString()
	{
		return externalPlayer;
	}
}
